package com.swcw.platform.constants;

import java.util.ArrayList;
import java.util.List;

import com.swcw.platform.utils.bean.RedisBean;

/**
 * 自定义常量
 * 
 * @see:
 * @Company:江苏鸿信系统集成有限公司微信开发组
 * @author 杨坚
 * @Time 2016年11月11日
 * @version 1.0v
 */
public class OwnConstant {
	// 从数据库
	public static List<RedisBean> followRedisList = new ArrayList<RedisBean>();
	// 主数据库
	public static List<RedisBean> masterRedisList = new ArrayList<RedisBean>();

	// 静态初始化redis从数据库信息
	static {
		followRedisList.add(new RedisBean("180.97.31.118", 22112, "jshxRedis", null));
		followRedisList.add(new RedisBean("180.97.31.118", 22113, "jshxRedis", null));
		masterRedisList.add(new RedisBean("180.97.31.118", 22111, "jshxRedis", null));
	}

	/** 微信项目路径 **/
	public static final String WECHAT_PROJECT_LINK = "http://njwxtest.jlonline.com/swcw/";

	/** 微信项目域名 **/
	public static final String WECHAT_DOMAIN_NAME = "http://njwxtest.jlonline.com/";

	/** 字符集 **/
	public static final String CHARSETNAME = "UTF-8";

	/** FTP字符集 **/
	public static final String FTP_CHARSETNAME = "GBK";

	/** 是否开启redis数据库 **/
	public static final boolean REDIS_INIT_SWITCH = true;

	/** redis中关键字标识 **/
	public static final String REDIS_KEYROWD = "_keyword_";

	/** redis中图文标识 **/
	public static final String REDIS_ARTILE = "_article_";

	/** redis中客服标识 **/
	public static final String REDIS_CUSTOM = "_custom_";

	/** redis中关注语带参标识 **/
	public static final String REDIS_GREETINGS = "_greetings_";

	/** redis中用户导航标识 **/
	public static final String REDIS_NAVIGATION = "_navigation";

	/** redis中关注语无参标识 **/
	public static final String REDIS_GREETINGS_ORDINARY = "_greetings_ordinary_";

	/** 聚合数据归属地api--key **/
	public static final String JH_ATTRIBUTION_APP_KEY = "b58133483403a13fce2eb07e826037f0";

	/** 聚合数据身份证api--key **/
	public static final String JH_IDCARD_APP_KEY = "07d30eeb161502a75b3504035fd61353";

	/** 二维码登录修改 **/
	public static final String QRCODE_LOGIN_SAVE_PARAMS = "login|PARAMS";

	/** 二维码登录 **/
	public static final String QRCODE_LOGIN_PARAMS = "login|PARAMS|TIME";

	/** 发送方邮箱 **/
	public static final String SEND_MAIL_ACCOUNT = "wplatform@163.com";

	/** 发送方授权码 **/
	public static final String SEND_MAIL_CODE = "wplatform17";

	/** 发送方代理 **/
	public static final String SEND_MAIL_HOST = "smtp.163.com";

	/** 发送方名称 **/
	public static final String SEND_MAIL_NAME = "微平台";

}
